# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=sxmobar
pkgver=1.1.0
pkgrel=0
pkgdesc="A status bar component manager"
url="https://git.sr.ht/~stacyharper/sxmobar/"
arch="x86_64 aarch64 riscv64" # hare
license="AGPL-3.0-or-later"
makedepends="hare hare-ev scdoc"
subpackages="$pkgname-doc"
source="$pkgname-v$pkgver.tar.gz::https://git.sr.ht/~stacyharper/sxmobar/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	# Don't use user's global Hare cache
	export XDG_CACHE_HOME="$srcdir"/hare-cache
	mkdir -p "$XDG_CACHE_HOME"

	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
3d20aa183864c4b6f76a1b9a51f96f32969b1899f61e05faf0dabd3953c74372dbc6bcf3478d2bb22d4ddff9780cffa51a2431da49ae6b39c55ae5e2d4443532  sxmobar-v1.1.0.tar.gz
"
